/*
 * Copyright (C) 2009-2018 Hangzhou 2Dfire Technology Co., Ltd. All rights reserved
 */
package com.ws.soa.consumer.util;

/**
 * BoolUtil
 *
 * @author luobosi@2dfire.com
 * @since 2019-01-30
 */
public class BoolUtil {

  public static Boolean numToBool(int num) {
    return num == 1 ? Boolean.TRUE : Boolean.FALSE;
  }


  public static Integer boolToNum(boolean flag) {
    return flag ? 1 : 0;
  }

}
